package online.yysh.charging;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;


import online.yysh.charging.base.BaseActivity;

public class AboutUsActivity extends BaseActivity {

    private TextView tv_cancel,tv_title,tv_version;

    private LinearLayout ll_about,ll_version;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_about_us;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        tv_cancel = findViewById(R.id.tv_cancel);
        tv_cancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        tv_title = findViewById(R.id.tv_title);
        tv_title.setText(R.string.about_us);
        tv_version = findViewById(R.id.tv_version);
        ll_about = findViewById(R.id.ll_about);
        ll_about.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(AboutUsActivity.this, H5Activity.class));
            }
        });

        ll_version = findViewById(R.id.ll_check_version);
        ll_version.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                showToast("已经是最新版本");
            }
        });
    }

    @Override
    protected void initData() {

    }
}